<div class="lenta-block">
    	<div class="title">
        	<%= link_to post.title, user_post_path(post.user, post)%>
            <div class="date">(<%= post.created_at.to_s(:long)%>)</div>
        </div>
        <div class="cont">
        	<div class="user-panel">
            	<%#= link_to_function pic(post.user_avatar), "show_user_panel(event, #{post.id})", :onmouseover=>"show_user_panel(event, #{post.id})", :href=>user_path(post.user) %> 
            	<%= link_to pic(post.user_avatar), user_path(post.user), {:onclick=>"show_user_panel(event, #{post.id})", :onmouseover=>"show_user_panel(event, #{post.id})"}%>
   	          <%= link_to post.user.title, user_path(post.user) %><br/>
							<%= render :partial=>"users/user_panel", :locals=>{:post=>post} if logged_in? && current_user.is_context_menu? %>
              <%= link_to post.community.title, community_path(post.community) if post.community %>
          </div>

        	<%= Hpricot(cut(post)).to_html %>
        	<%#= debug(post.content_html)%>
        </div>
        <div class="bottom" style='margin-top:30px;'>
        	<strong><%= link_to  "#{post.comments.size} #{Russian.p(post.comments.size, 'комментарий', 'комментария', 'комментариев')}", user_post_path(post.user, post) + "#comments" %></strong> <%= link_to "коментировать", user_post_path(post.user, post) + "#comment-form"%>
    </div>
</div>
